// Early Warning interfaces for real API integration
export interface EarlyWarningItem {
  id: string;
  batteryPackSN: string; // mapped from batteryPackSn
  deviceSN: string; // mapped from deviceSn
  alertName: string;
  batteryType: string;
  capacity: number;
  predictedTime: string; // occurrence time range or single time
  detectTime: string;
  status: "Open" | "Close"; // mapped from API (e.g., open/close or number)
}

export interface EarlyWarningResponse {
  code: number;
  msg: string;
  data: {
    total: number;
    list: Array<{
      id: string;
      batteryPackSn: string;
      deviceSn: string;
      alertName: string;
      batteryType: string;
      capacity: number;
      predictedTime: string;
      detectTime: string;
      status: string | number;
    }>;
  };
}

// 下拉静态选项（如需可在页面加载后动态补充）
export const statusOptions = [
  { value: "", label: "All status" },
  { value: "open", label: "Open" },
  { value: "close", label: "Close" }
];

export const batteryTypeOptions = [
  { value: "", label: "All battery type" }
];

export const alertNameOptions = [
  { value: "", label: "All alert name" }
];
